Open
Conversation
NeoSelf1
approved these changes
Jan 1, 2025
| - 어떠한 조건도 줄 필요가 없는 간단한 작업일 때 사용합니다. | ||
| - shared에는 delegate와 customizable configuration 객제가 존재하지 않습니다. | ||
| - 때문에 다음과 같은 제한 사항이 있습니다. | ||
| 1. 데이터가 서버에 도착할 때 점진적으로 데이터를 얻을 수 없다. |
Collaborator
There was a problem hiding this comment.
@mint3382 님, 점진적으로 데이터를 얻을 수 있다는 것에 대해 추가 설명이나 예시를 들어주면 좋을 것 같습니다!
Member
Author
There was a problem hiding this comment.
스트리밍 컨텐츠나 큰 파일 다운로드, 실시간 데이터 처리가 필요한 경우 Delegate를 사용해 데이터를 점진적으로 처리할 수 있습니다. 이는 데이터가 서버에 도착하는 대로, 부분적으로 처리하겠다는 의미로 다음과 같은 메서드를 사용합니다.
urlSession(_:dataTask:didReceive:): 서버에서 데이터가 도착할 때마다 호출urlSession(_:dataTask:didCompleteWithError:): 모든 데이터가 수신 된 후 호출
이를 통해 데이터를 일부씩 처리하여 응답 속도를 향상시키기에 실시간 처리가 가능해 스트리밍 컨텐츠 등이 가능합니다. 또한 대용량 데이터를 처리할 때, 메모리에 전체 데이터를 한번에 저장하지 않아도 된다는 장점이 있습니다.
ericKwon95
approved these changes
Jan 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #11
iOS 앱에서 네트워크 통신을 하는 방법에는 어떤 것들이 있나요?
URLSession의 기본 사용 방법을 설명해주세요.
shared
Configuration
네트워크 요청 시 에러 처리는 어떻게 하나요?
1. 옵셔널 및 다중 파라미터
2. Result 타입
3. Combine
4. async/await
서드 파티 라이브러리(예: Alamofire)를 사용하는 이유는 무엇인가요?